![]() |
Programming - Object Oriented Code
OPENING QUESTIONS: What is the significance of "Event Listeners" in my sample code? In other words, why is it critical to have those in there? OBJECTIVES: I will working with the Code.Org development platform to do very basic object oriented coding during today's class. COURSE DOCUMENTS: Coding Specs Ver 1.64 is HERE My code sample for today is HERE (please be sure to rename that file to save it in your own library of programs/code WORDS FOR TODAY: Every single object we place on the screen MUST have a name and that name MUST comply to our classroom naming standards. Why is that? WORK O' THE DAY: I'll spend some time modeling the work flow of a computer program now. Remember, we are kind of lucky in that code.org has provided us with an exceptionally rich object environment. Java doesn't have that (without a whole bunch of specialized libraries) and besides, Java, C, C++ won't work natively with browsers, Java Script can and does. I'll discuss that too!
We're going to have another 'sand box' day today (The term comes from the Tech world where developers get to 'play in the sand box' and just try out ideas and such without concerns about whether they will actually work with the main product) Make sure to REMIX your current code and make a new version for today's work. Work on adding a combo box (often called a drop-down box) and fill it up with 5 options. Add an 'event listener' to your code that simply (somehow) shows the selection to the user after they have made that selection. My sample code is HERE
|